Is there an easy way to turn a Javascript Hover behaviour into a Mouse Click? I've searched the internet, but can't find a solution.

Comments

kahara’s picture

friendly bump ;)

dman’s picture

You need to provide a lot more context.
Is this even a Drupal question? Drupal doesn't use any hover effects at all AFAIK.
In general, you just swap out the onMouseOver and replace it with onClick - but you haven't explained at all what you are talking about.

... which is why you can't get any replies!

kahara’s picture

I need to provide more context, but I'm having difficulties figuring out how to put it.
The issue occurs with using the Views Slideshow Module. It makes use of Javascript. When you hover over a field it changes the node that is currently shown to the one you're pointing at. I want to override that hover behaviour and turn it into mouseclick.
I have installed the Hoverintent module, which alters the hover behaviour, and was hoping I would be able to change the script so the hover behaviour would be overridden by a mouseup / click behaviour.
I have little knowledge on Javascript, but I guess this should be possible. I've searched the internet on overriding the hover behaviour, but I can't find anything useful.